﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace LS.FrmUI.Dal
{
    public class SysSettingDal
    {
        public bool UpdateData(string sop,string printTip)
        {
            string sql = @"update syssetting set sop ='{0}',printtip='{1}' where id = 1";
            sql = string.Format(sql, sop, printTip);
            return DBHelper.ExecuteNonQuery(sql)>0;
        }

        public DataTable GetDTFromSysSetting()
        {
            string sql = "select * from syssetting";
            return DBHelper.GetTable(sql);
        }
    }
}
